<?php

namespace addons\xpframework\library\xcore\xcore\utils;

use addons\xpframework\library\xcore\xcore\job\XcMessageNotifyJob;

class XcMessageNotifyUtils
{

    public static function sendsms($mobile, $configname, $tplname, $data)
    {
        XcThreadJobUtils::execute(XcMessageNotifyJob::class, "sendsms", $mobile, $configname, $tplname, $data);
    }
    public function sendccodesms($mobile, $configname, $event)
    {
        XcThreadJobUtils::execute(XcMessageNotifyJob::class, "sendccodesms", $configname, $event);
    }

    public function sendemail($email, $configname, $title, $tplname, $data)
    {
        XcThreadJobUtils::execute(XcMessageNotifyJob::class, "sendccodesms", $email, $configname, $title, $tplname, $data);
    }

    public static function notifyAdmin($admin_id, $confignames, $tplname, $title, $data)
    {
        XcThreadJobUtils::execute(XcMessageNotifyJob::class, "sendccodesms", $admin_id, $confignames, $tplname, $title, $data);
    }

    public static function notifyAdminRole($role_id, $confignames, $tplname, $title, $data)
    {
        XcThreadJobUtils::execute(XcMessageNotifyJob::class, "sendccodesms", $role_id, $confignames, $tplname, $title, $data);
    }
}
